<?php
require_once("isadmin.php");
require_once("config.php");
//page_constant("reg");
$dsql->SetQuery("select * from journey order by id desc");
$dsql->Execute();
while($row=$dsql->GetArray())
{
	$journey[]=$row;
	if($row['sourceid']!=null)
		$journey[]['source']=$dsql->getone("select name from source where id = ".$row['sourceid']);
}
$tpl->assign("journey",$journey);

$dsql->SetQuery("select * from source order by id desc");
$dsql->Execute();
while($row=$dsql->GetArray())
{
	$source[]=$row;
}
$tpl->assign("source",$source);

$tpl->display("admin.tpl");




?>